
function openEditor(flag){
//    alert(flag);
    if(flag=='0'){
        parent.content.document.location="DefaultEditor.jsp";
    }else if(flag=='1'){
        parent.content.document.location="SimpleEditor.jsp";
    }
}
function simpleEditor(){
    myform.action=top.tophead.ctxpath+"/sample/EditorCtrl!simpleEditor.do";
//    myform.target="content";
    myform.submit();
}
function defaultEditor(){
    alert(myform.content.value);
    alert(editor.html());

    myform.action=top.tophead.ctxpath+"/sample/EditorCtrl!defaultEditor.do";
//    myform.target="content";
    myform.submit();
}